package com.chinamobile.push

import android.content.Context

import androidx.multidex.MultiDex

import com.alibaba.android.arouter.launcher.ARouter

import com.cmcc.shared.BaseApplication
import com.cmcc.shared.SdkManager
import com.cmcc.shared.SdkManager.LANGUAGE_ENG
import com.cmcc.shared.SdkManager.LANGUAGE_ZH_TW
import com.cmcc.shared.config.BaseConfig
import com.cmcc.shared.utils.L
import com.google.android.gms.maps.model.LatLng

class App : BaseApplication() {

    override fun onCreate() {
        super.onCreate()
        instance = this
        if (BaseConfig.isDebug) {
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)
        L.init("MyLinkCar")
        SdkManager.setLanguage(LANGUAGE_ZH_TW)
        SdkManager.setApplicationContext(this)
    }

    override fun attachBaseContext(base: Context) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }

    companion object {
        var instance: App? = null
        fun instance() = instance!!
    }



}
